package kr.co.skplanet.commute.repository.hibernate;

import java.io.Serializable;
import java.util.List;



public interface GenericRepository<E> {
	
	void save(E entity);

	E select(Serializable id);
	
	void update(E entity);

	E merge(E entity);
	
	void delete(E entity);
	
	void flush();

    void clear();
    
	List<E> getAll();
	
	E findUniqByObject(String columnName, Object object);
	
	List<E> findListByObject(String columnName, Object object);
	
	Object findColumnByObject(String returnColumn, String whereColumn, Object whereParameter);


	

}